<?php
	header("Content-type: image/png");
	//for navigation link hover - r=50&g=207&b=54
	$r = $_GET['r'];
	$g = $_GET['g'];
	$b = $_GET['b'];
	
	$x=1;
	$y=75;
	$ie = imagecreatetruecolor($x, $y);

	/* This is amazing, if I go from $y to 0, image appears to have depth and if I go from 0 to $y, image appears to have (what we call opposite of depth in English?). */
	/* for $y to 0, see previous version of this file in repository. */
	for($k=0; $k<$y/2; $k++) //move through each line of height 1 pixel
	{
		if($k % 4 == 0)
			$b-- % 255;
		if($k % 1 == 0)
			$g-- % 255;
		$r-- % 255;
		$current_colour = imagecolorallocate($ie, $r, $g, $b);
		imagefilledrectangle($ie, 0, $k, $x, $k+1, $current_colour);
	}
	for($k=$y/2; $k<$y; $k++) //move through each line of height 1 pixel
	{
		if($k % 4 == 0)
			$b++ % 255;
		if($k % 1 == 0)
			$g++ % 255;
		$r++ % 255;
		$current_colour = imagecolorallocate($ie, $r, $g, $b);
		imagefilledrectangle($ie, 0, $k, $x, $k+1, $current_colour);
	}
	//$last_boreder = imagecolorallocate($ie, ($r+10) % 255, ($g+12) % 255, ($b+16)%255);
	//imagefilledrectangle($ie,0,$k-1,$x,$k, $last_border);
	imagepng($ie);
	imagedestroy($ie);
?>